package com.findyou.service;

import com.findyou.pojo.Headline;
import com.baomidou.mybatisplus.extension.service.IService;
import com.findyou.pojo.vo.PortalVo;
import com.findyou.utils.Result;

/**
* @author Lenovo
* @description 针对表【news_headline】的数据库操作Service
* @createDate 2024-03-06 20:06:46
*/
public interface HeadlineService extends IService<Headline> {

    /**
     * 分页查询
     * @param portalVo
     * @return
     */
    Result findNewsPage(PortalVo portalVo);


    /**
     * 根据id查询文章的详细信息 并让
     * @param hid
     * @return
     */
    Result showHeadlineDetail(int hid);


    /**
     *
     * 发布头条的方法
     * @param headline
     * @return
     */
    Result publish(Headline headline, String token);

    Result findHeadlineByHid(int hid);

    Result updateByMySelf(Headline headline);

    void removeByHid(int hid);
}
